﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SysUserEdit.ascx.cs" Inherits="ExaminationSys.View.SystemManage.SysUserEdit" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script type="text/javascript" language="javascript">
    var setID = function (param) {
        var hidden = document.getElementById('<%=IDHidden.ClientID %>');
        hidden.value = param;
    };
</script>


<input type="hidden" id="IDHidden" runat="server" />
<ext:Window 
    ID="EditWindow" 
    runat="server" 
    Icon="Group" 
    Title="用户信息编辑"
    Width="400" 
    Height="400" 
    AutoShow="false" 
    Modal="true" 
    Hidden="true"
    Layout="Fit">
    <Items>       
                <ext:FormPanel 
                    ID="FormEditPanel" 
                    runat="server" 
                    Icon="ChartOrganisation"
                    DefaultAnchor="95%"
                    Padding="5"
                    BodyPadding="10">
                    <Items>
                       
                            <ext:TextField ID="UserType" Name="UserTypeID" AllowBlank="true" runat="server" FieldLabel="用户类型" /> 
                            <ext:TextField ID="UserNo" Name="UserNo" AllowBlank="true" runat="server" FieldLabel="编号" /> 
                            <ext:TextField ID="UserName" Name="UserName" AllowBlank="false" runat="server" FieldLabel="用户名称" /> 
                            <ext:TextField ID="LoginName" Name="LoginName" AllowBlank="true" runat="server" FieldLabel="登录名" /> 
                            <ext:TextField ID="Diminutive" Name="Diminutive" AllowBlank="true" runat="server" FieldLabel="昵称" /> 
                            <ext:TextField ID="Password" Name="Password" AllowBlank="true" InputType="Password" runat="server" FieldLabel="密码" /> 
                            <ext:TextField ID="Sex" Name="Sex" AllowBlank="true" runat="server" FieldLabel="性别" /> 
                            <ext:TextField ID="Birthday" Name="Birthday" AllowBlank="true" runat="server" FieldLabel="出生日期" /> 
                            <ext:TextField ID="CollegeName" Name="CollegeName" AllowBlank="false" runat="server" FieldLabel="学院" /> 
                            <ext:TextField ID="MajorName" Name="MajorName" AllowBlank="false" runat="server" FieldLabel="专业" /> 
                            <ext:TextField ID="ClassName" Name="ClassName" AllowBlank="false" runat="server" FieldLabel="班级" /> 
                            <ext:TextField ID="Title" Name="Title" AllowBlank="true" runat="server" FieldLabel="职称" /> 
                            <ext:TextField ID="Rights" Name="Rights" AllowBlank="true" runat="server" FieldLabel="权限" /> 
                            <ext:TextField ID="Mobile" Name="Mobile" AllowBlank="true" runat="server" FieldLabel="手机" /> 
                            <ext:TextField ID="Telphone" Name="Telphone" AllowBlank="true" runat="server" FieldLabel="电话" /> 
                            <ext:TextField ID="Email" Name="Email" AllowBlank="true" runat="server" FieldLabel="邮箱" /> 
                            <ext:TextField ID="UserAddress" Name="UserAddress" AllowBlank="true" runat="server" FieldLabel="地址" /> 
                            <ext:TextField ID="SecurityQuestion" Name="SecurityQuestion" AllowBlank="true" runat="server" FieldLabel="安全问题" /> 
                            <ext:TextField ID="SecurityAnswer" Name="SecurityAnswer" AllowBlank="true" runat="server" FieldLabel="安全答案" /> 
                            <ext:TextField ID="IsCenttypeNOValid" Name="IsCenttypeNOValid" AllowBlank="true" runat="server" FieldLabel="是否验证登录" /> 
                            <ext:TextField ID="IsFreeze" Name="IsFreeze" AllowBlank="true" runat="server" FieldLabel="是否冻结" /> 
                            <ext:TextField ID="UserImage" Name="UserImage" AllowBlank="true" runat="server" FieldLabel="用户图象" /> 
                            <ext:TextField ID="WorkAddress" Name="WorkAddress" AllowBlank="true" runat="server" FieldLabel="工作地点" /> 
                            <ext:TextField ID="SelfIntroduction"　Name="SelfIntroduction" AllowBlank="true" runat="server" FieldLabel="自我介绍" /> 
                            <ext:TextField ID="Url" Name="Url" AllowBlank="true" runat="server" FieldLabel="网址" /> 
                            <ext:TextField ID="EmailActivationAddress" Name="EmailActivationAddress" AllowBlank="true" runat="server" FieldLabel="邮件激活地址" /> 
                            <ext:TextField ID="EmailActivationTime" Name="EmailActivationTime" AllowBlank="true" runat="server" FieldLabel="邮件激活时间" /> 
                            <ext:TextField ID="Remark1" Name="Remark1" AllowBlank="true" runat="server" FieldLabel="备注1" /> 
                            <ext:TextField ID="Remark2" Name="Remark2" AllowBlank="true" runat="server" FieldLabel="备注2" /> 
                            <ext:TextField ID="Remark3" Name="Remark3" AllowBlank="true" runat="server" FieldLabel="备注3" /> 
                            <ext:TextField ID="LockKey" Name="LockKey" AllowBlank="true" runat="server" FieldLabel="是否锁定" /> 
                            <ext:TextField ID="DeleteKey" Name="DeleteKey" AllowBlank="true" runat="server" FieldLabel="是否删除" /> 
                          
                    </Items>
                </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="SaveButton" runat="server" Text="保存" Icon="BulletGo">
            <DirectEvents>
                <Click OnEvent="SaveEntity" Failure="Ext.MessageBox.alert('Saving failed', 'Error during ajax event');">
                </Click>
            </DirectEvents>
            
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="取消" Icon="Cancel">
            <Listeners>
                 <Click Handler="#{EditWindow}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>